package com.tbit.uqbike.client.dao.log;

import com.tbit.uqbike.client.pojo.AppointMentLog;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description: 预约记录日志
 * @Date: 创建于 13:37 2020/8/17
 */
public interface AppointMentLogDao {

    /**
     * 分页查询
     *
     * @return
     */
    List<AppointMentLog> queryPage(Map<String, Object> map);

    /**
     * 分页总数
     *
     * @return
     */
    Integer queryCount(Integer userId);

    /**
     * 新增
     *
     * @param appointMentLog
     */
    void add(AppointMentLog appointMentLog);

    /**
     * 查询今天预约的次数
     *
     * @param userId
     * @return
     */
    Integer getTodayAppoint(Integer userId);
}
